 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ include file="/commons/commonList.jsp"%>
<script type="text/javascript">
   function openCustEventDetail(currID){ //打开事件详细页面
   	 var url = "${ctx}/customerService_custServEventAction.do?method=initCustservEventDetailMain&custEventKeyword="+currID;
   	 top.windowOpen(url, "customerEventDetail", "详细资料", 480,950,true,"customerEventDetailFrame");
   }
   function resize(){
		parent.window.document.all("frameList").style.height=document.body.scrollHeight;
   }
</script>
</head>
<body onload="resize();">
<div    class="tab_bgline" >
<div style="overflow:auto; height:200px;" id="divId">

  <ec:ceTable items="customerEventList"
	action="${ctx}/houseMainLin_houseMainLineAction.do?method=listCustomerEvent&houseNumber=${houseNumber}"
	var="customerEvent"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="10" >
	<ec:ceRow styleClass="grid"
		ondblclick="openCustEventDetail('${customerEvent.keyword}');">
		<ec:ceColumn headerCell="pmsHeadrCell" title="事件编号" property="eventNo" sortable="true" width="14%" showTitle="false">
			<c:choose>
				<c:when test="${customerEvent.relationship > 0}">
					<img src="${ctx}/images/ico_chain.gif" alt="关联事件" width="16" height="16" />
				</c:when>
				<c:otherwise>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				</c:otherwise>
			</c:choose>
			${customerEvent.eventNo}
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="详细地点" property="fullAddress" sortable="false" width="7%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="房 号" property="houseNumber" sortable="false" width="6%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="联系人" property="contact" sortable="false" width="8%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="紧急程度" property="emergencyDegreeName" sortable="false" width="8%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="事件性质" property="custServEventNatureName" sortable="false" width="8%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="事件内容" property="eventContent" sortable="false" width="15%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="有效性" property="validityStr" sortable="false" width="6%">
			<c:choose>
				<c:when test="${customerEvent.validityStr eq '001'}">有效</c:when>
				<c:when test="${customerEvent.validityStr eq '000'}">无效</c:when>
				<c:when test="${customerEvent.validityStr eq '002'}">待定</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="事件状态" property="eventStatuzStr" sortable="false" width="7%">
			<c:choose>
				<c:when test="${customerEvent.eventStatuzStr eq '001'}">新 建</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '002'}">已提交</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '003'}">已完工</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '004'}">待归档</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '005'}">已归档</c:when>
				<c:when test="${customerEvent.eventStatuzStr eq '000'}">作 废</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="回访状态" property="returnVisitStatuzStr" sortable="false" width="7%">
			<c:choose>
				<c:when test="${customerEvent.returnVisitStatuzStr eq '001'}">待回访</c:when>
				<c:when test="${customerEvent.returnVisitStatuzStr eq '002'}">已回访</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="阅签状态" property="reviewerStatuzStr" sortable="false" width="7%">
			<c:choose>
				<c:when test="${customerEvent.reviewerStatuzStr eq '001'}">待阅签</c:when>
				<c:when test="${customerEvent.reviewerStatuzStr eq '002'}">已阅签</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="抽检状态" property="checkStatuz" sortable="false" width="7%">
			<c:choose>
				<c:when test="${customerEvent.checkStatuz eq '0' }">未抽检</c:when>
				<c:when test="${customerEvent.checkStatuz eq '1' }">已抽检</c:when>
			</c:choose>
		</ec:ceColumn>
	</ec:ceRow>
</ec:ceTable>


</div>
</div>
</body>
</html>